package cn.flightcloud.swagger2.web;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class WebController {

	@GetMapping("/hi")
	public String callHome() {
		return "hi";
	}

	public String hiError() {
		return "hi,sorry,error!";
	}

	@GetMapping("/info")
	public String info() {
		return "i'm swagger2";
	}

}
